package com.huhui.myutil.exception;

/**
 * @author 胡辉
 * @email iihuhui@163.com
 * @create 2019-07-29 21:28
 */
public class BizException extends RuntimeException {
    private String code;//编码
    private String i18nCode;//国际编码
    private static final long serialVersionUID = 1L;

    public BizException() {
    }

    public BizException(String message) {
        super(message);
    }


    public BizException(String message, String code) {
        super(message);
        this.code = code;
    }

    public BizException(String message, String code, String i18nCode) {
        super(message);
        this.code = code;
        this.i18nCode = i18nCode;
    }


    public String getCode() {
        return this.code;
    }


    public void setCode(String code) {
        this.code = code;
    }


    public String getI18nCode() {
        return this.i18nCode;
    }


    public void setI18nCode(String i18nCode) {
        this.i18nCode = i18nCode;
    }
}


